RemoveMany Method (TKey, IEnumerable)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes a collection of values from the values associated with a key. If the last value is removed from a key, the key is removed also.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual int RemoveMany(
	TKey key,
	IEnumerable<TValue> values
)
Visual Basic (Declaration)
Public Overridable Function RemoveMany ( _
	key As TKey, _
	values As IEnumerable(Of TValue) _
) As Integer
Visual C++
public:
virtual int RemoveMany (
	TKey key, 
	IEnumerable<TValue>^ values
)

Parameters

key
TKey
A key to remove values from.
values
IEnumerable<(Of <TValue>)>
A collection of values to remove.

Return Value

The number of values that were present and removed.

See Also